import request from '@/utils/request'

export function allotRole(params) {
  return request({
    url: '/sys/user/assignRoles',
    method: 'put',
    data: params
  })
    .then(res => res.data.message)
    .catch(err => Promise.reject(err.response.data.message))
}
